package com.lqfan.autoAnswerQ.model.quesBank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.lqfan.autoAnswerQ.model.fileType.FileType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqfan
 * @since 2020-04-05
 */
@TableName("question")
@Data
public class Question extends Model<Question> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.UUID)
    private String id;

    @TableField("userId")
    private String userId;

    /**
     * 路径
     */
    @TableField("filePath")
    private String filePath;

    @TableField("questionName")
    private String questionName;

    @TableField("questionTime")
    private LocalDateTime questionTime;

    /**
     * 题库类型 1 经典练习  2模拟测试
     */
    @TableField("questionFileType")
    private Integer questionFileType;

    @TableField("doNumber")
    private Integer doNumber;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getQuestionName() {
        return questionName;
    }

    public void setQuestionName(String questionName) {
        this.questionName = questionName;
    }

    public LocalDateTime getQuestionTime() {
        return questionTime;
    }

    public void setQuestionTime(LocalDateTime questionTime) {
        this.questionTime = questionTime;
    }

    public Integer getQuestionFileType() {
        return questionFileType;
    }

    public void setQuestionFileType(Integer questionFileType) {
        this.questionFileType = questionFileType;
    }

    public Integer getDoNumber() {
        return doNumber;
    }

    public void setDoNumber(Integer doNumber) {
        this.doNumber = doNumber;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", filePath='" + filePath + '\'' +
                ", questionName='" + questionName + '\'' +
                ", questionTime=" + questionTime +
                ", questionFileType=" + questionFileType +
                ", doNumber=" + doNumber +
                '}';
    }
}
